//
// Created by mongobaba on 2021/6/8.
//

#include "unit_test.h"
#include "json_checker_wrapper.h"

// 解析成功
TEST(json_checker_wrapper_true) {
    const char *str = R"({"name":"name", "age":10})";
    ASSERT_EQ(true, check_by_json_checker(str));
}

// 解析失败
TEST(json_checker_wrapper_false) {
    const char *str = R"({"name":"name" "age":10})";
    ASSERT_EQ(false, check_by_json_checker(str));
}
